package com.example.petstore.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Date;
import java.time.LocalDateTime;

@Data
@TableName("signon")
public class User {
    @TableId(type = IdType.AUTO)
    private int id;
    private String username;
    private String password;
    private String giteeid;
    @TableField("phonenumber")
    private String phoneNumber;
//    用的是sql包中的
    @TableField("leftdate")
    private LocalDateTime leftDate;
}
